package com.domino.client.mvc.impl.ai;

import java.util.Date;
import java.util.Random;

import com.domino.shared.model.Color;

public class BotFactory {

	static Random rand = new Random(new Date().getTime());

	public Bot createBot(Color botColor) {
		switch (rand.nextInt(5)) {
		case 0:
			return new Jutta(botColor);
		case 1:
			return new Bettan(botColor);
		case 2:
			return new Amber(2, botColor, "Amber", 5);
		case 3:
			return new Amber(3, botColor, "Lisa", 5);
		case 4:
			return new Amber(3, botColor, "Ulrika", 0);
		}
		throw new IllegalStateException("Fix the switch");
	}

}
